import request from '@/utils/request'

// 查询教师管理列表
export function listTeacher(data) {
  return request({
    url: '/school/teacher/list',
    method: 'post',
    data: data
  })
}

// 查询教师管理详细
export function getTeacher(id) {
  return request({
    url: '/school/teacher/' + id,
    method: 'get'
  })
}

// 新增教师管理
export function addTeacher(data) {
  return request({
    url: '/school/teacher/add',
    method: 'post',
    data: data
  })
}

// 修改教师管理
export function updateTeacher(data) {
  return request({
    url: '/school/teacher/edit',
    method: 'post',
    data: data
  })
}

// 删除教师管理
export function delTeacher(id) {
  return request({
    url: '/school/teacher/remove/' + id,
    method: 'post'
  })
}
